package com.hy.bean;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
public class ReceiveApply implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 
     */
    private Long deptid;

    /**
     * 
     */
    private Long sqr;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date sqsj;

    /**
     * 
     */
    private String memo;

    /**
     * 
     */
    private String status;

    /**
     * 
     */
    private Long djr;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date djsj;

    /**
     * 
     */
    private String djstatus;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ReceiveApply other = (ReceiveApply) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDeptid() == null ? other.getDeptid() == null : this.getDeptid().equals(other.getDeptid()))
            && (this.getSqr() == null ? other.getSqr() == null : this.getSqr().equals(other.getSqr()))
            && (this.getSqsj() == null ? other.getSqsj() == null : this.getSqsj().equals(other.getSqsj()))
            && (this.getMemo() == null ? other.getMemo() == null : this.getMemo().equals(other.getMemo()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getDjr() == null ? other.getDjr() == null : this.getDjr().equals(other.getDjr()))
            && (this.getDjsj() == null ? other.getDjsj() == null : this.getDjsj().equals(other.getDjsj()))
            && (this.getDjstatus() == null ? other.getDjstatus() == null : this.getDjstatus().equals(other.getDjstatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDeptid() == null) ? 0 : getDeptid().hashCode());
        result = prime * result + ((getSqr() == null) ? 0 : getSqr().hashCode());
        result = prime * result + ((getSqsj() == null) ? 0 : getSqsj().hashCode());
        result = prime * result + ((getMemo() == null) ? 0 : getMemo().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getDjr() == null) ? 0 : getDjr().hashCode());
        result = prime * result + ((getDjsj() == null) ? 0 : getDjsj().hashCode());
        result = prime * result + ((getDjstatus() == null) ? 0 : getDjstatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", deptid=").append(deptid);
        sb.append(", sqr=").append(sqr);
        sb.append(", sqsj=").append(sqsj);
        sb.append(", memo=").append(memo);
        sb.append(", status=").append(status);
        sb.append(", djr=").append(djr);
        sb.append(", djsj=").append(djsj);
        sb.append(", djstatus=").append(djstatus);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}